home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
VS_804.ARJ
/
MAINTSRC.EXE
/
PICKFLD.PRG
< prev
next >
Wrap
Text File
|
1991-11-25
|
1KB
|
51 lines
* Filename......: PickFld.Prg
*
* Author........: Vernon E. Six, Jr.
*
* Last Update...: Mon 11-25-1991 14:51:52
*
* Notice........: Copyright (c) 1991 by Vernon E. Six, Jr.
* All Rights Reserved World Wide
*
* All Forms Of Distribution Prohibited!
*
* Dialect.......: Clipper v5.0x
#include "INKEY.CH"
#include "SETCURS.CH"
FUNCTION PickFld()
*****
* Pick a field for index building
*****
LOCAL o_Get := GetActive()
LOCAL c_GetDbfName
LOCAL c_GetFldName
LOCAL c_NtxFldName
IF o_Get = NIL
RETURN(NIL)
ENDIF
IF VALTYPE(o_Get:cargo) <> "A"
RETURN(NIL)
ENDIF
c_GetDbfName = o_Get:cargo[1]
c_GetFldName = o_Get:cargo[2]
IF c_GetDbfName <> "_DICTNTX" .OR. c_GetFldName <> "KEY"
RETURN(NIL)
ENDIF
IF EMPTY( c_NtxFldName := S_PickFld() )
RETURN(NIL)
ENDIF
KEYBOARD ALLTRIM(c_NtxFldName)
RETURN(NIL)
*** EOF: ********************************************************************